Skip to content

Conversation

@alex-huth
Copy link

-Optimized the ice-shelf CG scheme by reducing the number of times reproducing_sum (and therefore, mpp_sum) is called. Previously, several 2-D arrays were each being passed within their own reproducing_sum calls, which is now avoided by consolidating the 2-D arrays into one 3-D array that is passed to a single reproducing_sum call. This is not answer-changing.

-Make sure frazil is allocated before adding it to the ice-shelf water flux calculation. Required for runs without frazil

-Added a mask that is >0 where ice-shelf melting is allowed. Defaults to 1 (melting allowed everywhere) if no mask is provided. Useful in some regional/idealized configurations.

…roducing_sum (and therefore, mpp_sum) is called. Previously, several 2-D arrays were each being passed within their own reproducing_sum calls, which is now avoided by consolidating the 2-D arrays into one 3-D array that is passed to a single reproducing_sum call.
…ux calculation. Needed for runs without frazil.
Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for these useful additions. I think that this PR will be ready to go once a few minor additions are made to the documenting comments (described in specific comments at the relevant lines) to align with the MOM6 style guidelines.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working enhancement New feature or request labels Jan 5, 2026
… units; converted cg_halo and max_cg_halo from real to integer
Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes now look good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants